Add a `harness` manifest option
authorAlex Crichton <alex@alexcrichton.com>
Mon, 25 Aug 2014 12:54:47 +0000 (05:54 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 27 Aug 2014 01:51:47 +0000 (18:51 -0700)
commita6589681351dc4a87b6fc268d47b7d608004b455
treeb2ae61b1fbf6e9ca6e8e1639c960b9325afef789
parent6f765b358f7206c744a692b921f0abab3964929d
Add a `harness` manifest option

This option is used to disable the --test flag to rustc for a test or benchmark
target in order to signal that the binary already knows how to run the testing
infrastructure.

The test/benchmark is still compiled and run as usual, and the exit code is
expected to reflect the result of the test/benchmark.

Closes #431
src/cargo/core/manifest.rs
src/cargo/ops/cargo_rustc/mod.rs
src/cargo/util/toml.rs
tests/test_cargo_test.rs